﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace PropertyManagment.config.jwt {
    public class JwtConfig {
        /// <summary>
        /// 谁颁发的
        /// </summary>
        public string issuer { get; set; }

        /// <summary>
        /// 颁发给谁
        /// </summary>
        public string audience { get; set; }

        /// <summary>
        /// 令牌密码
        /// a secret that needs to be at least 16 characters long
        /// </summary>
        public string signingKey { get; set; }

        /// <summary>
        /// 过期时间(分钟)
        /// </summary>
        public int expires { get; set; }

        /// <summary>
        /// 是否校验过期时间
        /// </summary>
        public bool validateLifetime { get; set; }
    }
}
